/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.zaahir.assignment2.LSP.Conf;

//import java.awt.Rectangle;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.zaahir.assignment2.LSP.Impl.ShapeImpl;
import za.ac.cput.zaahir.assignment2.LSP.Impl.Square;
import za.ac.cput.zaahir.assignment2.LSP.Impl.Rectangle;
/**
 *
 * @author Nashief
 */ 
@Configurable
public class AppConfig {
   @Bean 
   public ShapeImpl shape() 
   {
       return new ShapeImpl();
   } 
   @Bean
   public Square square() 
   {
       return new Square();
   } 
   @Bean 
   public Rectangle rectangle()
   {
       return new Rectangle();
   }
}
